﻿package com.cw.war.ui
{

	import flash.display.MovieClip;

	/**
	 * 连接服务器进度条
	 * @author elvisjiang
	 */
	public class Progress extends AbstractPopup
	{
		private static var instance : Progress;

		public static function open () : void
		{
			if (instance == null)
			{
				instance = new Progress ();
			}
			instance.open ();
		}

		public static function close () : void
		{
			if (instance == null)
			{
				instance = new Progress ();
			}
			instance.close ();
		}

		private var mc : MovieClip;

		public function Progress ()
		{
			super ();
			this.mc = new Lib_ProgressMC ();
			this.addChild ( mc );
			this.setModal ( true );
		}

		/**
		 * 显示弹出窗口
		 */
		override public function open () : void
		{
			super.open ();
		}

		override public function close () : void
		{
			super.close ();
		}
	}
}
